﻿using System;
using Sustainalytics.ESGRatings.BusinessLogic.Models;

namespace Sustainalytics.ESGRatings.Service.Models
{
    public class FileUploadLogsDto
    {
        public string Errors { get; set; }

        private FileUploadLogsDto() { }// prohibit public instantiation

        public static FileUploadLogsDto CreateComplete(FileUploadLogs fileUploadLogs)
        {
            if (fileUploadLogs == null)
            {
                throw new ArgumentNullException("fileUploadLogs", "File upload logs cannot be null.");
            }

            return new FileUploadLogsDto
            {
                Errors = fileUploadLogs.Errors
            };
        }
    }
}
